def decode_data(data:bytes):
    try:
        return data.decode('utf-8')
    except:
        return data.decode('gbk')